package com.cash.app.custom

import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.LinearLayout
import com.cash.app.databinding.ViewEmptyStateBinding

class EmptyStateView @JvmOverloads constructor(
    context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
) : LinearLayout(context, attrs, defStyleAttr) {

    private val binding: ViewEmptyStateBinding =
        ViewEmptyStateBinding.inflate(LayoutInflater.from(context), this, true)

    fun setEmptyText(text: String) {
        binding.emptyText.text = text
    }

    fun setEmptyImage(resId: Int) {
        binding.emptyImage.setImageResource(resId)
    }
} 